import request from '@/utils/request'

// 查询信创进度列表
export function listInfoInnovation(query) {
  return request({
    url: '/infoInnovation/infoInnovation/list',
    method: 'get',
    params: query
  })
}

// 查询信创进度详细
export function getInfoInnovation(id) {
  return request({
    url: '/infoInnovation/infoInnovation/' + id,
    method: 'get'
  })
}

// 新增信创进度
export function addInfoInnovation(data) {
  return request({
    url: '/infoInnovation/infoInnovation',
    method: 'post',
    data: data
  })
}

// 修改信创进度
export function updateInfoInnovation(data) {
  return request({
    url: '/infoInnovation/infoInnovation',
    method: 'put',
    data: data
  })
}

// 删除信创进度
export function delInfoInnovation(id) {
  return request({
    url: '/infoInnovation/infoInnovation/' + id,
    method: 'delete'
  })
}

// 导出信创进度
export function exportInfoInnovation(query) {
  return request({
    url: '/infoInnovation/infoInnovation/export',
    method: 'get',
    params: query
  })
}
export function getUser() {
  return request({
    url: '/infoInnovation/infoInnovation/getUser',
    method: 'get'
  })
}
export function importInfoInnovation(query) {
  return request({
    url: '/infoInnovation/infoInnovation/uploadInfo',
    method: 'post',
    params: query
  })
}